CacheValueType
import { CacheValueType } from "@hyper-fetch/core"
Description
Defined in cache/cache.types.ts:37
Preview
type CacheValueType<Response,Error,Adapter> = ResponseReturnType<Response, Error, Adapter> & ResponseDetailsType & { cacheTime: number; clearKey: string; garbageCollection: number };
Structure
{
data: GenericDataType | null;
error: GenericErrorType | null;
extra: T extends AdapterType<any, any, any, infer A, any> ? A : never | null;
status: T extends AdapterType<any, any, infer S, any, any> ? S : never | null;
success: boolean;
isCanceled: boolean;
isOffline: boolean;
retries: number;
timestamp: number;
cacheTime: number;
clearKey: string;
garbageCollection: number;
}